<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>学生信息管理系统</title>
    <link rel="stylesheet" href="/static/css/iconfont.css">
    <link rel="stylesheet" href="/static/css/style.css">
    <script type="text/javascript">

    function myfunction() {

        var name = document.getElementById('userCode').value;
        var password = document.getElementById('passwordCode').value;
        var flag = true;

        if (name == '') {
            flag = false;
            alert('请输入用户名！');

        }
        else if (password==''){
            flag = false;
            alert('请输入密码！');
        }
        return flag;
    }

</script>

<style>

    #h1{
        text-align: center;
    }

</style>

</head>

<body>
    <h1 id="h1">学生信息管理系统</h1>
    <form method="post" action="/student">
        <div id="bigBox">
            <h1>LOGIN</h1>

            <div class="inputBox">

                <div class="inputText">
                    <span class="iconfont icon-nickname"></span>
                    <input type="text" placeholder="Username" name="username" id="userCode" value="admin">
                </div>

                <div class="inputText">
                    <span class="iconfont icon-visible"></span>
                    <input type="password" placeholder="Password" name="password" id="passwordCode" value="123456">
                </div>

                <input onclick="return myfunction()" class="loginButton" type="submit" value="Login" >

            </div>

        </div>
    </form>

</body>

</html>
